﻿<UserControl
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:mvvm="clr-namespace:EasyMvvm;assembly=EasyMvvm"
			 xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
			 xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
			 x:Class="EasyNotepad.View.ShellView"
			 mc:Ignorable="d" 
			 d:DesignHeight="300" d:DesignWidth="300">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition/>  	
		</Grid.RowDefinitions>
		<Menu VerticalAlignment="Top">
			<MenuItem Header="File">
				<MenuItem Header="New">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="Click">
							<ei:CallMethodAction MethodName="New" TargetObject="{Binding}"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</MenuItem>
				<MenuItem Header="Open">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="Click">
							<ei:CallMethodAction MethodName="Open" TargetObject="{Binding}"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</MenuItem>
				<MenuItem Header="Save">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="Click">
							<ei:CallMethodAction MethodName="Save" TargetObject="{Binding}"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</MenuItem>
				<MenuItem Header="Save As...">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="Click">
							<ei:CallMethodAction MethodName="SaveAs" TargetObject="{Binding}"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</MenuItem>
				<Separator/>
				<MenuItem Header="Close">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="Click">
							<ei:CallMethodAction MethodName="Close" TargetObject="{Binding}"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</MenuItem>
			</MenuItem>
			<MenuItem Header="Edit">
				<MenuItem Header="Undo" Command="ApplicationCommands.Undo"/>
				<MenuItem Header="Redo" Command="ApplicationCommands.Redo"/>
				<Separator/>
				<MenuItem Header="Cut" Command="ApplicationCommands.Cut"/>
				<MenuItem Header="Copy" Command="ApplicationCommands.Copy"/>
				<MenuItem Header="Paste" Command="ApplicationCommands.Paste"/>
				<MenuItem Header="Delete" Command="ApplicationCommands.Delete"/>
			</MenuItem>
		</Menu>
		<TextBox Grid.Row="1" SpellCheck.IsEnabled="True" Text="{Binding Text}" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
	</Grid>
</UserControl>